home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.alf < prev    next >
Text File  |  1996-07-05  |  6KB  |  170 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.8 $
  33. *
  34. * File Description:
  35. *       system dependent header
  36. *       version for DEC Alpha running OSF/1 operating system
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. * 4/12/93  Kans/Gish   Include <time.h>, #undef ABS to avoid conflict
  43. *
  44. * ==========================================================================
  45. */
  46. #ifndef _NCBILCL_
  47. #define _NCBILCL_
  48.  
  49. /* PLATFORM DEFINITION FOR DEC Alpha AXP processor running OSF/1 */
  50.  
  51. #define COMP_DEC
  52. #define OS_UNIX
  53. #define OS_UNIX_OSF1
  54. #define PROC_ALPHA
  55. #define WIN_DUMB
  56.  
  57. /*----------------------------------------------------------------------*/
  58. /*      Desired or available feature list                               */
  59. /*----------------------------------------------------------------------*/
  60. /*#define MPROC_AVAIL*/
  61. #define SYSV_IPC_AVAIL
  62. #define SYSV_STREAMS_AVAIL
  63. #ifdef MPROC_AVAIL
  64. #define DCE_THREADS_AVAIL
  65. #endif
  66.  
  67. /*----------------------------------------------------------------------*/
  68. /*      #includes                                                       */
  69. /*----------------------------------------------------------------------*/
  70. #include <sys/types.h>
  71. #include <limits.h>
  72. #include <sys/stat.h>
  73. #include <stddef.h>
  74. #include <stdio.h>
  75. #include <ctype.h>
  76. #include <string.h>
  77. #include <malloc.h>
  78. #include <memory.h>
  79. #include <stdlib.h>
  80. #include <math.h>
  81. #include <unistd.h>
  82. #ifdef MPROC_AVAIL
  83. #include <pthread.h>
  84. #define DCE_THREADS_AVAIL
  85. #endif
  86. #include <errno.h>
  87. #include <float.h>
  88. #include <time.h>
  89.  
  90. /*----------------------------------------------------------------------*/
  91. /*      Missing ANSI-isms                                               */
  92. /*----------------------------------------------------------------------*/
  93. #define noalias    /* "noalias" keyword not accepted by compiler */
  94.  
  95. #ifndef FILENAME_MAX
  96. #define FILENAME_MAX 1024
  97. #endif
  98.  
  99. /*----------------------------------------------------------------------*/
  100. /*      Aliased Logicals, Datatypes                                     */
  101. /*----------------------------------------------------------------------*/
  102. typedef int        Nlm_Int4, *Nlm_Int4Ptr;
  103. typedef unsigned int    Nlm_Uint4, *Nlm_Uint4Ptr;
  104. typedef long        Nlm_Int8, *Nlm_Int8Ptr;
  105. typedef unsigned long    Nlm_Uint8, *Nlm_Uint8Ptr;
  106.  
  107. #define Int4        Nlm_Int4
  108. #define Int4Ptr        Nlm_Int4Ptr
  109. #define Uint4        Nlm_Uint4
  110. #define Uint4Ptr    Nlm_Uint4Ptr
  111. #define Int8        Nlm_Int8
  112. #define Int8Ptr        Nlm_Int8Ptr
  113. #define Uint8        Nlm_Uint8
  114. #define Uint8Ptr    Nlm_Uint8Ptr
  115.  
  116. /*----------------------------------------------------------------------*/
  117. /*      Misc Macros                                                     */
  118. /*----------------------------------------------------------------------*/
  119. #ifdef ABS
  120. #undef ABS
  121. #endif
  122. #define PROTO(x)    x
  123. #define VPROTO(x)    x
  124. #define DIRDELIMCHR    '/'
  125. #define DIRDELIMSTR    "/"
  126. #define CWDSTR    "."
  127.  
  128. #define KBYTE    (1024)
  129. #define MBYTE    (1048576)
  130.  
  131. #define IS_LITTLE_ENDIAN
  132. #define TEMPNAM_AVAIL
  133.  
  134. /*----------------------------------------------------------------------*/
  135. /*      For importing MS_DOS code                                       */
  136. /*----------------------------------------------------------------------*/
  137. #define near
  138. #define far
  139. #define huge
  140. #define cdecl
  141. #define pascal
  142. #define _pascal
  143. #define _near
  144. #define _far
  145. #define _huge
  146. #define _cdecl
  147.  
  148. /*----------------------------------------------------------------------*/
  149. /*      Macros for Floating Point                                       */
  150. /*----------------------------------------------------------------------*/
  151. #define EXP2(x) exp((x)*LN2)
  152. #define LOG2(x) log2(x)
  153. #define EXP10(x) exp((x)*LN10)
  154. #define LOG10(x) log10(x)
  155.  
  156. /*----------------------------------------------------------------------*/
  157. /*      Macros Defining Limits                                          */
  158. /*----------------------------------------------------------------------*/
  159. #define INT4_MIN    INT_MIN
  160. #define INT4_MAX    INT_MAX
  161. #define UINT4_MAX    UINT_MAX
  162.  
  163. #define INT8_MIN    LONG_MIN
  164. #define INT8_MAX    LONG_MAX
  165. #define UINT8_MAX    ULONG_MAX
  166.  
  167. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  168.  
  169. #endif
  170.